package com.hbnu.pojo;

import java.util.HashSet;
import java.util.Set;

public class Teacher {
    private Integer tid;
    private String tname;
//    private Classes classes;

    Set<Classes> classesSet = new HashSet<>();

    @Override
    public String toString() {
        return "Teacher{" +
                "tid=" + tid +
                ", tname='" + tname + '\'' +
                ", classesSet=" + classesSet +
                '}';
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public Set<Classes> getClassesSet() {
        return classesSet;
    }

    public void setClassesSet(Set<Classes> classesSet) {
        this.classesSet = classesSet;
    }

    //    public void setTname(String tname) {
//        this.tname = tname;
//    }
//
//    public Classes getClasses() {
//        return classes;
//    }
//
//    public void setClasses(Classes classes) {
//        this.classes = classes;
//    }
}
